package com.huang.design.creatation.prototype;

public class MainTest {
    public static void main(String[] args) {
        HuangMyBatis huangMyBatis = new HuangMyBatis();
        User xx = (User) huangMyBatis.getUser("xx");

        xx.setName("ll");
        System.out.println(xx);
        User xx2 = (User) huangMyBatis.getUser("xx");

        System.out.println(xx2);
        User xx3 = (User) huangMyBatis.getUser("xx");
        System.out.println(xx3);
        User xx4= (User) huangMyBatis.getUser("xx");
        System.out.println(xx4);

        System.out.println(xx2==xx4);



    }
}
